package com.earl.eatbao.service;

import com.earl.eatbao.commons.service.BaseService;
import com.earl.eatbao.domain.eatbao.BusinessApply;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface BusinessApplyService extends BaseService<BusinessApply, Long>{

	/**
	 * 商家认证审失败
	 * @param applyId
	 */
	public void failOnBusinessApply(Long applyId);

	/**
	 * 商家认证审核通过
	 * @param applyId
	 */
	void successOnBusinessApply(Long applyId);

	/**
	 * 申请认证为商家
	 * @param desc
	 * @param userId
	 * @param backImg 身份证背面图片
	 * @param fontImg  身份证正面图片
	 */
	Boolean beBusinessApply(String desc, Long userId, MultipartFile backImg, MultipartFile fontImg);

	/**
	 * 查询所用待审核的用户
	 * @return
	 */
    List<BusinessApply> findAllWaitApplyBusiness();

	/**
	 * 查看所用通过审核的商家
	 * @return
	 */
	List<BusinessApply> findAllPassApplyBusiness();

	/**
	 * 查看所用不通过审核的商家
	 * @return
	 */
	List<BusinessApply> findAllFailApplyBusiness();
}
